package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 步骤分组表 实体类
 * 表名：risk_step_group
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_step_group")
public class RiskStepGroup implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 租户主键ID
     */
    @Column(name = "tenant_id", nullable = false)
    private Long tenantId;
    
    /**
     * 步骤分组名称
     */
    @Column(name = "step_group_name", nullable = false, length = 50)
    private String stepGroupName;
    
    /**
     * 步骤分组描述
     */
    @Column(name = "step_group_desc", length = 255)
    private String stepGroupDesc;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 更新者
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Byte isDel;
    
    @Override
    public String toString() {
        return "RiskStepGroup{" +
            "id=" + id +
            ", tenantId=" + tenantId +
            ", stepGroupName=" + stepGroupName +
            ", stepGroupDesc=" + stepGroupDesc +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", isDel=" + isDel +
        '}';
    }
} 